package com.hyts.mvc.bean.web;

import com.hyts.mvc.config.HandlerType;
import com.hyts.mvc.model.HandlerWrapper;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.commons.chain.impl.ContextBase;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * project-name:coffice-toolbox
 * package-name:com.hyts.mvc.bean.web
 * author:Libo/Alex
 * create-date:2019-07-05 13:08
 * email:liboware@gmail.com
 * description:此类主要用于:
 */
@ToString
@AllArgsConstructor
public class MvcParamContext extends ContextBase {

    /**
     * request 请求体
     */
    @Getter
    private HttpServletRequest httpServletRequest;

    /**
     * response 响应体
     */
    @Getter
    private HttpServletResponse httpServletResponse;



    @Getter
    private HandlerWrapper handlerWrapper;

    

    public MvcParamContext(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {
        this.httpServletRequest = httpServletRequest;
        this.httpServletResponse = httpServletResponse;
    }
}
